package pojo;

import java.util.ArrayList;
import java.util.List;

/**
 * CREATE TABLE `teacher` (
 *   `tea_id` bigint(20) NOT NULL COMMENT '账号，唯一标识',
 *   `tea_password` varchar(20) DEFAULT NULL COMMENT '密码',
 *   `tea_name` varchar(50) DEFAULT NULL COMMENT '姓名',
 *   `tea_department` varchar(100) DEFAULT NULL COMMENT '老师所在部门',
 *   PRIMARY KEY (`tea_id`)
 * ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 */
public class Teacher {
    private String tea_id;
    private String tea_password;
    private String tea_name;
    private String tea_department;

    private List<Student> teaLists = new ArrayList<Student>();

    public Teacher() {
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "tea_id=" + tea_id +
                ", tea_password='" + tea_password + '\'' +
                ", tea_name='" + tea_name + '\'' +
                ", tea_department='" + tea_department + '\'' +
                ", teaLists=" + teaLists +
                '}';
    }

    public List<Student> getTeaLists() {
        return teaLists;
    }

    public void setTeaLists(List<Student> teaLists) {
        this.teaLists = teaLists;
    }

    public String getTea_id() {
        return tea_id;
    }

    public void setTea_id(String tea_id) {
        this.tea_id = tea_id;
    }

    public String getTea_password() {
        return tea_password;
    }

    public void setTea_password(String tea_password) {
        this.tea_password = tea_password;
    }

    public String getTea_name() {
        return tea_name;
    }

    public void setTea_name(String tea_name) {
        this.tea_name = tea_name;
    }

    public String getTea_department() {
        return tea_department;
    }

    public void setTea_department(String tea_department) {
        this.tea_department = tea_department;
    }
}
